import http from "../service/http";
const homeGoods={
	//商品类型
	goodsType(param){
		return http.post('/schoolET/wx/getType',param)
	},
	//查询所有商品
	goodsList(param){
		return http.post('/schoolET/wx/invitation?pageSize=9999',param)
	},
	//通过类型id查询所有类型商品
	goodsByTypeId(goodsTypeId,param){
		return http.post(`/schoolET/wx/invitation?goodsTypeId=${goodsTypeId}`,param)
	},
	//通过商品id查询商品
	goodsById(id,param){
		return http.post(`/schoolET/wx/queryGoods/${id}`,param)
	},
	//商品购买
	buyGoods(param){
		return http.post('/schoolET/wx/buyGoods',param)
	},
}
export default homeGoods